
<?php

/**
 * @author christian
 * @copyright 2011
 */

//echo "registrar ....";


$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDTourGeneral/CDrawPageReg.php");
include_once("$ruta/MDTourGeneral/CTourEditDraw.php");


if (!isset($_GET['codigo'])) {$_GET['codigo'] = "NULL"; }
$idPackTour=$_GET['codigo'];

$action="GuideUpdate.php?codigo=$idPackTour";$name="formulario_registro";$method="post";$NAME="REGISTRO"; //solo paso default, el codigo lo recogo en CTourEdit
CDrawPageReg::getInstance()->DrawHead($action,$name,$method,$NAME);

echo "<rigth><h2>Datos del Tour Conductor</h2><rigth>";
     $campos = array("idGuide"=>"idGuide", "FirstNamGui"=>"FirstNamGui", " LastNamGui"=> "LastNamGui");
     
//     $maintable, $table,$campos,$NAME, $id, $idnomain, $size)
     echo "<div id='dashboard_info'>";     
     CTourEditDraw::getInstance()->DrawSelect("pack_has_tour_has_guidetc","guidetc",$campos,"Tour Conductor 1",$idPackTour,"guidetc_idGuide",1,1);
     CTourEditDraw::getInstance()->DrawSelect("pack_has_tour_has_guidetc","guidetc",$campos,"Tour Conductor 2",$idPackTour,"guidetc_idGuide",1,2);     
     echo "</div>";
     
     
CDrawPageReg::getInstance()->DrawSubmmit("Seleccionar paquete");
CDrawPageReg::getInstance()->DrawFoot();
include_once("$ruta/elements/foot.tpl");


?>

 